package dailearn.feign.controller;

import dailearn.feign.producer.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author daify
 * @date 2019-07-03 14:31
 **/
@RestController
public class FeignController {

    @Autowired 
    ClientService clientService;

    @RequestMapping(value = "/consumer",method = RequestMethod.GET)
    public String getClientService() {
        return clientService.getService();
    }
}
